export default function(dom) {
    window.addEventListener('scroll', function() {
        if(document.documentElement.scrollTop>100){
            dom.style.position = 'fixed'
        }else{
            dom.style.position = 'absolute'
        }
    })
}